import { IsNotEmpty } from 'class-validator';

export class CreatePostDto {
  @IsNotEmpty({ message: '文章标题必填' })
  title: string;
  @IsNotEmpty({ message: '文章内容必填' })
  content: string;
}
